#pragma once
//飞机信息
#include <string>
#include <iostream>
#include <map>
#include <vector>
using namespace std;


class Plane {
public:
	Plane();
	~Plane();

	// CRDU
	bool AddPlane(unsigned int planeId,string planeModel,unsigned int seatSize);
	bool DeletePlane(unsigned int planeId);
	bool ModifyPlane(unsigned int planeId, map<string,string> entry);
	Plane SearchPlane(unsigned int planeId);

	// 查询所有飞机
	vector<Plane> SearchAllPlane();

	// 成员变量访问和修改函数
	unsigned int getPlaneId()const;
	void setPlaneId(unsigned int id);

	string getPlaneModel()const;
	void setPlaneModel(string model);

	unsigned int getSeatSize()const;
	void setSeatSize(unsigned int seatSize);

private:
	unsigned int planeId;
	string planeModel;
	unsigned int seatSize;
};